using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace SistemaLib.sipe.util
{
    public class ColorRandom
    {
        

        public static Color GetRandomColor()
        {
            Random rand = new Random();
            return Color.FromArgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, 256));
        }

        public static Color[] GetRandomColorArray( int length)
        {
            Color[] list = new Color[length];

            for (int i = 0; i < length; i++)
            {
                list[i] = GetRandomColor();
            }

            return list;
        }

        public static string[] GetColorPalette(int length)
        {
            string[] resu = new string[length];
            string[] palette = new string[15];

            palette[0] = "3F4C6B";
            palette[1] = "C3D9FF";
            palette[2] = "FF1A00";
            palette[3] = "CDEB8B";
            palette[4] = "FF8C00";
            palette[5] = "36393D";
            palette[6] = "4096EE";
            palette[7] = "CC0000";
            palette[8] = "FF7400";
            palette[9] = "008C00";
            palette[10] = "006E2E";
            palette[11] = "FFFF88";
            palette[12] = "6BBA70";
            palette[13] = "B02B2C";
            palette[14] = "D15600";

            for (int i = 0; i < length; i++)
            {
                resu[i] = palette[i];
            }
            
            return resu;
        }
        
    }
}
